let names:string = 'ddd'

console.log('数据显示：',names)
let agea = 18
// dcfvgtbhynmik,lweraetbnry5euqwdevbrstdhyf sgrbznyd6umo9.cyp/.
let age: number = 18
console.log('数字输出',age)

let nums:bigint = 18098n

console.log('bigint数据：',nums);

let obj:(string|number)="12"
console.log('dasdasddsa');

let sss: number = 2
let ss1: number = 0xf003
let ss2: number = 0b0101
let ss3: number = 0o774
let ss4: bigint = 100n
console.log('数据展示：', sss, ss1, ss2, ss3, ss4);


let user: null = null
console.log('null', user);

let us: undefined = undefined
console.log('', us);


let numbers: number[] = [222, 22, 22]


let string: string[] = ['asd', 'asda', 'asda']
let strings: Array<string> = ['asd', 'asda', 'asda']

/**联合类型数组 */
let arr3: (number | string)[]
arr3 = [222, 2222, 'ddf']


/**interface是接口 */
interface Arrobjs{
    name:string,
    age:number,
    bool:boolean
}
let arrObj:Arrobjs={
    name:'1wew',
    age:12,
    bool:false
}
/**联合与交叉类型 */
let timer:number|null=9/** =null */


